<!--#include file="conn.asp"-->
<!--#include file="chkuser.asp"-->
<%
call adminRight(4)

ID=request("ID")
ArticleID=request("ArticleID")

if request("action")="Del" then
	if ArticleID="" then
		alert("没有选择数据！")
		goBack()
		response.End()
	end if
	sql="Delete from jobbook where ID in("&ArticleID&")"
	conn.execute(sql)
	Go("?showMsgStr=<br><b>应聘信息已删除成功！</b>|parent|3000|500||")
end if
%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>应聘管理</title>
<link href="style.css" rel="stylesheet" type="text/css" />

<script language="javascript" type="text/javascript">
function selcheck(id) {
   var e =document.getElementById(id);
   var objs = e.getElementsByTagName("input");
   if (e.checked){
      e.checked = false;
      for(var i=0; i<objs.length; i++) {
         if(objs[i].type.toLowerCase() == "checkbox" )
         objs[i].checked = false;
      }
   }   else   {
      e.checked = true;
      for(var i=0; i<objs.length; i++) {
         if(objs[i].type.toLowerCase() == "checkbox" )
         objs[i].checked = true;
      }
   }
}
</script>
</head>
<body>
    <div id="frame_Toolbar" class="toolbarBg"> 
		<a href="javascript:self.history.back();" class="icoBtn_ct"><span class="btnIco btnBack"></span>返回</a> 
		<a href="javascript:self.location.reload();" class="icoBtn_ct"><span class="btnIco btnReload"></span>刷新</a> 
		<span class="split ftSplit" ></span>
	    <div id="guide">点击<span class="light_orange"> 查看详情 </span>进行查看</div>
		<%
			   Set rs = Server.CreateObject("ADODB.Recordset")
			   sql="select * from jobbook order by id desc"
			   rs.open sql,conn,1,1
	    %>
	    <div class="pageInfo right light_gray">[当前共有<span id="Label_total_top" class="light_bOrange"><%=rs.recordcount%></span>条记录]</div>
    </div>
	<div id="MainContent">
<%if ID="" then%>
	<form method="POST" id=form2 name="form2" action="">
     <table class="cTable table tCenter">
	    <tr class="cTitle toolbarBg" id="Title">
		    <td width="6%"><span class="checkbox">
	      <input type="checkbox" name="chkall" onClick="selcheck('MainContent')" /></span></td>
		    <td width="9%"><span class="split ctSplit"></span>
	      <div>编号</div></td>
		    <td width="15%"><span class="split ctSplit"></span>
	      <div>应聘者</div></td>
			<td width="14%"><span class="split ctSplit"></span>
		  <div>学历</div></td>
		    <td width="25%"><span class="split ctSplit"></span>
	      <div>应聘职位</div></td>
		    <td width="18%"><span class="split ctSplit"></span>
	      <div>提交日期</div></td>
			<td width="13%"><span class="split ctSplit"></span>
		  <div>操作</div></td>
	    </tr>
	    <%
			   rs.pagesize=14
			   curpage=Request.QueryString("curpage")
			   if curpage="" then curpage=1
			   if not rs.eof then rs.absolutepage=curpage
			   for i=1 to rs.pagesize
			   if rs.eof then exit for
		 %>
		<tr class="trDataList" onMouseOver="this.className='trDataListHover'" onMouseOut="this.className='trDataList'">
			<td><input name="ArticleID" type="checkbox" id="ArticleID" value="<%=rs("ID")%>" /></td>
			<td><%=rs("ID")%></td>
			<td><%=rs("name")%></td>
			<td><%=rs("Studydegree")%></td>
			<td><%=rs("jobname")%></td>
			<td><%=rs("AddDate")%></td>
			<td><a href="?ID=<%=rs("ID")%>">查看详情</a>/<a href="?ArticleID=<%=rs("ID")%>&action=Del" onClick="return confirm('确定删除？')">删除</a></td>
		</tr>
		<%
			rs.movenext
			next
        %>	
	</table> 
    <div id="cEndToolbar" class="toolbarBg">
        <div class="pageList">
				<%
				set pageObj=new pager
				response.Write pageObj.link(rs.recordcount,rs.pagesize,curpage,"?curpage=",qryString)
				%>
		<%
			rs.close
			Set rs=nothing
		 %>
	    </div>
	    <div class="pageSelect"><span class="iptSl"><input type="checkbox" name="chkall" onClick="selcheck('MainContent')" /></span><a href="javascript:selcheck('MainContent');"><span class="btnTxt">选择</span></a></div>
	    <span class="split cpSplit" ></span>
	    <div class="pageBtnDo">
	        <div class="icoBtn_do"><input type="image" name="Delete_Button" id="Delete_Button" class="btnIco btnDel" src="images/Empty.gif" onClick="document.form2.action='?action=Del';return confirm('确定要删除吗?');" style="border-width:0px;" /></div>
	    </div>	    
      </div>
	</form>
<%else%>
	<%
	Set rs = Server.CreateObject("ADODB.Recordset")
	sql="select * from jobbook where id="&ID
	rs.open sql,conn,1,1
	%>
	<table class="cTable table">
	  <tr class="cTitle toolbarBg">
	    <td colspan="2"><div class="cLeftPadding">应聘者详细资料</div></td>
	  </tr>
	  <tr>
	    <td align="right" width="25%">应聘岗位：</td>
		<td ><%=rs("jobname")%></td>
	  </tr>
	  <tr> 
		<td align="right">姓 名：</td>
		<td><%=rs("name")%></td>
	  </tr>
	  <tr> 
		<td align="right">性 别：</td>
		<td><%=rs("sex")%></td>
	  </tr>
	  <tr> 
		<td align="right">出生日期：</td>
		<td> <%=rs("birthday")%></td>
	  </tr>
	  <tr> 
		<td align="right">婚姻状况：</td>
		<td><%=rs("marry")%></td>
	  </tr>
	  <tr> 
		<td align="right">毕业院校：</td>
		<td><%=rs("school")%></td>
	  </tr>
	  <tr> 
		<td align="right">学 历： </td>
		<td><%=rs("studydegree")%></td>
	  </tr>
	  <tr> 
		<td align="right">专 业：</td>
		<td><%=rs("specialty")%></td>
	  </tr>
	  <tr> 
		<td align="right">毕业时间：</td>
		<td><%=rs("gradyear")%>  格式：<%=year(date)&"-"&month(date)&"-"&day(date)%></td>
	  </tr>
	  <tr> 
		<td align="right">电 话：</td>
		<td><%=rs("telephone")%></td>
	  </tr>
	  <tr> 
		<td align="right">E-mail：</td>
		<td><%=rs("email")%></td>
	  </tr>
	  <tr> 
		<td align="right">联系地址：</td>
		<td><%=rs("address")%></td>
	  </tr>
	  <tr> 
		<td align="right">水平与能力：</td>
		<td><%=rs("ability")%></td>
	  </tr>
	  <tr> 
		<td align="right">个人简历：</td>
		<td><%=rs("resumes")%></td>
	  </tr>
	</table>
	<div id="cEndToolbar" class="toolbarBg">
		<div class="caButCase">
		<input type="button" value="返 回" class="button" onClick="history.back()">
		</div>
	</div>
	<%
	rs.close
	Set rs=nothing
	%>
<%end if%>
	</div>	
</body>
</html>